package com.base.domain.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.base.control.model.DictionariesDto;
import com.base.control.model.EsDictionariesDto;
import com.base.domain.module.po.Dictionaries;
import com.base.domain.module.vo.DictionariesVo;
import com.base.domain.module.vo.EsDictionariesVo;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cyj
 * @since 2021-12-24
 */
public interface IDictionariesService extends IService<Dictionaries> {

    List<DictionariesVo> group(String group);

    void add(DictionariesDto dictionariesDto);

    void update(DictionariesDto dictionariesDto);

    void delete(Integer id);

    IPage<EsDictionariesVo> keyword(String group, String keyword, Page page);

    void addes(String group, List<EsDictionariesDto> esDictionariesDtos);

    String addEsHead(String group, List<DictionariesVo> dictionariesVos, HttpServletResponse response);
}
